<?php
	include_once "trangthai_db.php";
	
	class trangthai_bs
	{
		//--------------Field---------------
		private $MaTrangThai = -1;
		public function SetMaTrangThai($MaTrangThai)   { $this->MaTrangThai = $MaTrangThai;       }
		public function GetMaTrangThai()               { return $this->MaTrangThai;               }
		
		private $TenTrangThai = "";	
		public function SetTenTrangThai($TenTrangThai) { $this->TenTrangThai = $TenTrangThai;     }
		public function GetTenTrangThai()              { return $this->TenTrangThai;              }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new trangthai_db();
			return $data->Them($this->MaTrangThai, $this->TenTrangThai);
		}
		
		public function Xoa()
		{
			$data = new trangthai_db();
			return $data->Xoa($this->MaTrangThai);
		}
		
		public function LayDanhSach()
		{
			$data = new trangthai_db();
			return $data->LayDanhSach($this->MaTrangThai);
		}
	}
?>